package com.hezhiqin.springbootfirst;

import com.hezhiqin.springbootfirst.other.OtherConfiguration;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * @program: homeWork
 * @description:
 * @author: hezhiqin
 * @create: 2020-01-13 16:47
 */
public class TestMain {
    public static void main(String[] args) {
        AnnotationConfigApplicationContext annotationConfigApplicationContext  = new AnnotationConfigApplicationContext(OtherConfiguration.class);

        String [] names = annotationConfigApplicationContext.getBeanDefinitionNames();

        for (String name:
                names) {
            System.out.println(name);
        }
    }
}
